const BaseCom = resolve => {
        require.ensure(['../../BaseCom'], () => {
            resolve(require('../../BaseCom'))
        })
    }
    //车辆资源分配
const carAllot = resolve => {
    require.ensure(['./components/carAllot'], () => {
        resolve(require('./components/carAllot'))
    })
}


//任务资源分配
const taskAllot = resolve => {
        require.ensure(['./components/taskAllot'], () => {
            resolve(require('./components/taskAllot'))
        })
    }
    // 流失去向，战败去向分析
const lostTargetCom = resolve => {
        require.ensure(['./components/lostTargetCom'], () => {
            resolve(require('./components/lostTargetCom'))
        })
    }
    //短信模板
    //import MsgCom from './msg/MsgCom'
const MsgCom = resolve => {
    require.ensure(['./components/MsgCom'], () => {
        resolve(require('./components/MsgCom'))
    })
}

// 定义子模块路由
const configRoutes = [{
    path: 'config',
    component: BaseCom,
    children: [
        // 任务资源分配
        {
            path: 'taskAllot',
            component: taskAllot
        },

        //车辆分配
        {
            path: 'carAllot',
            component: carAllot
        },
        //车辆分配
        {
            path: 'lostTarget',
            component: lostTargetCom
        },
        {
            path: 'msg',
            component: MsgCom
        },

    ]
}]

export default configRoutes